package avicit.bdp.dds.api.utils.notebook;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2022-05-23
 * @类说明：NoteBookTaskContext
 * @修改记录：
 * @注意事项：
 * @主要功能：Jupyter NoteBook上下文
 */
public class NoteBookTaskContext {
    /**
     * NoteBookDto主键ID
     */
    private String id;

    /**
     * Jupyter NoteBook后台进程ID
     */
    private Integer processId;

    /**
     * Jupyter NoteBook日志
     */
    private List<String> logBuffer;

    public NoteBookTaskContext() {
        this.logBuffer = Collections.synchronizedList(new ArrayList<>());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getProcessId() {
        return processId;
    }

    public void setProcessId(Integer processId) {
        this.processId = processId;
    }

    public List<String> getLogBuffer() {
        return logBuffer;
    }

    public void setLogBuffer(List<String> logBuffer) {
        this.logBuffer = logBuffer;
    }
}
